import {get, post} from '@/utils/request'

/*
* 广告条件分页展示
*/
export const getList = (data) => {
  return post('/ad/split/list', data)
}

/*
* 修改广告状态
*/
export const updateStatus = (data) => {
  return post('/ad/split/updateStatus', data)
}

/*
* 修改广告信息
*/
export const updateSplitAd = (data) => {
  return post('/ad/split/updateSplitAd', data)
}

/*
* 广告添加
*/
export const addSplitAdvertising = (data) => {
  return post('/ad/split/addSplitAdvertising', data)
}

/*
* 根据id查找广告详细信息
*/
export const findSplidAdById = (id) => {
  return get('/ad/split/findSplidAdById/' + id , {})
}